package com.example.boos.pojo;

import java.io.Serializable;
import java.util.List;


public class FoodType implements Serializable {
    private Integer id;
    private String foodTypeName;
    private Integer storeId;

    // 额外属性： 当前菜单类型中有多少菜被选中
    private Integer addNums = 0;

    private List<Food> subFoods; // 该类别的菜集合

    @Override
    public String toString() {
        return "FoodType{" +
                "id=" + id +
                ", foodTypeName='" + foodTypeName + '\'' +
                ", storeId=" + storeId +
                ", addNums=" + addNums +
                ", subFoods=" + subFoods +
                '}';
    }

    public Integer getAddNums() {
        return addNums;
    }

    public void setAddNums(Integer addNums) {
        this.addNums = addNums;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFoodTypeName() {
        return foodTypeName;
    }

    public void setFoodTypeName(String foodTypeName) {
        this.foodTypeName = foodTypeName;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }


    public List<Food> getSubFoods() {
        return subFoods;
    }

    public void setSubFoods(List<Food> subFoods) {
        this.subFoods = subFoods;
    }
}
